package com.itany.cms.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_resource")
public class Resource {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String title;
    private String path;
    private String coverImageUrl;
    private String originalName;
    private Integer fileSize;
    private String fileType;
    private String totalTime;
    private Integer clickCount;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createDate;
    private Integer costType;
    private Integer costNumber;
    private Integer userId;
    private Integer chapterId;
    private Integer status;
    @TableField(exist = false)
    private LocalDateTime startDate;
    @TableField(exist = false)
    private LocalDateTime endDate;
    @TableField(exist = false)
    private String userName;
}
